<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户绑定</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <link rel="stylesheet" href="../css/jquery.treeview.css">
    <link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="../css/road.css" />
    <style>
        html,
        body {
            width: 100%;
            height: 100%;
        }

        main {
            width: 100%;
            height: 100%;
            background: url('image/bg.png') center center no-repeat;
            background-size: 100% 100%;
        }

        .relative {
            position: relative;
        }

        .absolute {
            position: absolute;
        }

        .login {
            right: 10%;
            top: 50%;
            width: 478px;
            background-color: rgba(255, 255, 255, .5);
            box-shadow: 3px 3px 10px rbga(0, 0, 0, .8);
            transform: translate(0, -39%);
            -webkit-transform: translate(0, -39%);
            -moz-transform: translate(0, -39%);
            -ms-transform: translate(0, -39%);
        }

        .login .title {
            color: white;
            line-height: 110px;
            font-size: 22px;
        }

        .has-feedback {
            height: 30px;
            padding-left: 0;
        }

        .has-feedback .form-control {
            width: 100%;
            height: 30px;
        }

        .form-control-feedback {
            right: 15px;
            top: 3px;
            line-height: 8px;
        }

        .login .btn {
            margin-top: 35px;
            color: white;
            line-height: 56px;
            font-size: 24px;
        }

        .login .btn button {
            margin-bottom: 29px;
            background-color: #850c10;
            line-height: 56px;
            font-size: 24px;
            border: 0;
            border-radius: 5px;
        }
    </style>
    <script src="js/jquery-1.11.3.js"></script>
    <script src="js/bootstrap.js"></script>
    <script src="js/index.js"></script>
    <script src="../js/jquery.cookie.js"></script>
    <script src="../js/jquery.treeview.js"></script>
</head>

<body>
    <main class="relative">
        <div class="login absolute container">
            <div class="title col-lg-12">用户绑定</div>
            <div class="input col-lg-12 relative">
                <div class="col-md-3">
                    <p>所属行业：</p>
                </div>
                <div class="col-md-9 has-feedback yell">
                    <input class="form-control industry inp_division_1" type="text" data-text="所属行业" />
                    <span class="form-control-feedback dall divisionIcon1">...</span>
                </div>
            </div>
            <div class="btn col-lg-12 relative">
                <button class="col-lg-12 bind">绑定</button>
            </div>
        </div>
    </main>
    <!--行业树状图-->
    <div class="treeBox division treeBox_1">
        <i data-dismiss="modal" class="closeIcon">×</i>
        <ul class="treeview-black tree" id="tree">
            <li>
                <span class="firstLev1">浙江省</span>
                <ul class="treeSecLevel">
                    <li class="treeNode1 closed">
                        <span class="secondLev1">交通运输厅</span>
                    </li>
                    <li class="treeNode1 closed">
                        <span class="secondLev1">厅管厅属</span>
                        <ul>
                            <li><span class="thirdLev1">公路局</span></li>
                            <li><span class="thirdLev1">港航局</span></li>
                            <li><span class="thirdLev1">运管局</span></li>
                            <li><span class="thirdLev1">机场局</span></li>
                            <li><span class="thirdLev1">浙江交院</span></li>
                            <li><span class="thirdLev1">省交通干部学校</span></li>
                            <li><span class="thirdLev1">技师学院</span></li>
                            <li><span class="thirdLev1">厅信息中心</span></li>
                            <li><span class="thirdLev1">咨询监理公司</span></li>
                            <li><span class="thirdLev1">交科院</span></li>
                            <li><span class="thirdLev1">交通工程监管局</span></li>
                        </ul>
                    </li>
                    <li class="treeNode1 closed">
                        <span class="secondLev1">地市</span>
                        <ul>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">杭州市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">上城区交通运输局</span></li>
                                            <li><span class="fifthLev1">下城区交通运输局</span></li>
                                            <li><span class="fifthLev1">江干区交通运输局</span></li>
                                            <li><span class="fifthLev1">拱墅区交通运输局</span></li>
                                            <li><span class="fifthLev1">西湖区交通运输局</span></li>
                                            <li><span class="fifthLev1">滨江区交通运输局</span></li>
                                            <li><span class="fifthLev1">萧山区交通运输局</span></li>
                                            <li><span class="fifthLev1">余杭区交通运输局</span></li>
                                            <li><span class="fifthLev1">建德市交通运输局</span></li>
                                            <li><span class="fifthLev1">富阳市交通运输局</span></li>
                                            <li><span class="fifthLev1">临安市交通运输局</span></li>
                                            <li><span class="fifthLev1">桐庐县交通运输局</span></li>
                                            <li><span class="fifthLev1">淳安县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">宁波市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">海曙区交通运输局</span></li>
                                            <li><span class="fifthLev1">江东区交通运输局</span></li>
                                            <li><span class="fifthLev1">江北区交通运输局</span></li>
                                            <li><span class="fifthLev1">镇海区交通运输局</span></li>
                                            <li><span class="fifthLev1">鄞州区交通运输局</span></li>
                                            <li><span class="fifthLev1">北仑区交通运输局</span></li>
                                            <li><span class="fifthLev1">余姚市交通运输局</span></li>
                                            <li><span class="fifthLev1">慈溪市交通运输局</span></li>
                                            <li><span class="fifthLev1">奉化市交通运输局</span></li>
                                            <li><span class="fifthLev1">象山县交通运输局</span></li>
                                            <li><span class="fifthLev1">宁海县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">温州市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">鹿城区交通运输局</span></li>
                                            <li><span class="fifthLev1">龙湾区交通运输局</span></li>
                                            <li><span class="fifthLev1">瓯海区交通运输局</span></li>
                                            <li><span class="fifthLev1">瑞安市交通运输局</span></li>
                                            <li><span class="fifthLev1">乐清市交通运输局</span></li>
                                            <li><span class="fifthLev1">永嘉县交通运输局</span></li>
                                            <li><span class="fifthLev1">洞头县交通运输局</span></li>
                                            <li><span class="fifthLev1">平阳县交通运输局</span></li>
                                            <li><span class="fifthLev1">苍南县交通运输局</span></li>
                                            <li><span class="fifthLev1">文成县交通运输局</span></li>
                                            <li><span class="fifthLev1">泰顺县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">嘉兴市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">南湖区交通运输局</span></li>
                                            <li><span class="fifthLev1">秀洲区交通运输局</span></li>
                                            <li><span class="fifthLev1">平湖市交通运输局</span></li>
                                            <li><span class="fifthLev1">海宁市交通运输局</span></li>
                                            <li><span class="fifthLev1">桐乡市交通运输局</span></li>
                                            <li><span class="fifthLev1">嘉善县交通运输局</span></li>
                                            <li><span class="fifthLev1">海盐县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">湖州市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">吴兴区交通运输局</span></li>
                                            <li><span class="fifthLev1">南浔区交通运输局</span></li>
                                            <li><span class="fifthLev1">德清县交通运输局</span></li>
                                            <li><span class="fifthLev1">长兴县交通运输局</span></li>
                                            <li><span class="fifthLev1">安吉县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">绍兴市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">越城区交通运输局</span></li>
                                            <li><span class="fifthLev1">诸暨市交通运输局</span></li>
                                            <li><span class="fifthLev1">上虞市交通运输局</span></li>
                                            <li><span class="fifthLev1">嵊州市交通运输局</span></li>
                                            <li><span class="fifthLev1">绍兴县交通运输局</span></li>
                                            <li><span class="fifthLev1">新昌县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">金华市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">婺城区交通运输局</span></li>
                                            <li><span class="fifthLev1">金东区交通运输局</span></li>
                                            <li><span class="fifthLev1">兰溪市交通运输局</span></li>
                                            <li><span class="fifthLev1">义乌市交通运输局</span></li>
                                            <li><span class="fifthLev1">东阳市交通运输局</span></li>
                                            <li><span class="fifthLev1">永康市交通运输局</span></li>
                                            <li><span class="fifthLev1">武义县交通运输局</span></li>
                                            <li><span class="fifthLev1">浦江县交通运输局</span></li>
                                            <li><span class="fifthLev1">磐安县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">衢州市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">柯城区交通运输局</span></li>
                                            <li><span class="fifthLev1">衢江区交通运输局</span></li>
                                            <li><span class="fifthLev1">江山市交通运输局</span></li>
                                            <li><span class="fifthLev1">常山县交通运输局</span></li>
                                            <li><span class="fifthLev1">开化县交通运输局</span></li>
                                            <li><span class="fifthLev1">龙游县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">舟山市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">定海区交通运输局</span></li>
                                            <li><span class="fifthLev1">普陀区交通运输局</span></li>
                                            <li><span class="fifthLev1">岱山县交通运输局</span></li>
                                            <li><span class="fifthLev1">嵊泗县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">台州市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">椒江区交通运输局</span></li>
                                            <li><span class="fifthLev1">黄岩区交通运输局</span></li>
                                            <li><span class="fifthLev1">路桥区交通运输局</span></li>
                                            <li><span class="fifthLev1">临海市交通运输局</span></li>
                                            <li><span class="fifthLev1">温岭市交通运输局</span></li>
                                            <li><span class="fifthLev1">玉环县交通运输局</span></li>
                                            <li><span class="fifthLev1">天台县交通运输局</span></li>
                                            <li><span class="fifthLev1">仙居县交通运输局</span></li>
                                            <li><span class="fifthLev1">三门县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <li class="treeNode1 closed">
                                <span class="thirdLev1">丽水市</span>
                                <ul>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">直属单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">交通运输局</span></li>
                                            <li><span class="fifthLev1">公路局</span></li>
                                            <li><span class="fifthLev1">港务(航)管理局</span></li>
                                            <li><span class="fifthLev1">运管局</span></li>
                                            <li><span class="fifthLev1">质监局</span></li>
                                        </ul>
                                    </li>
                                    <li class="treeNode1 closed">
                                        <span class="forthLev1">区县单位</span>
                                        <ul>
                                            <li><span class="fifthLev1">莲都区交通运输局</span></li>
                                            <li><span class="fifthLev1">龙泉市交通运输局</span></li>
                                            <li><span class="fifthLev1">青田县交通运输局</span></li>
                                            <li><span class="fifthLev1">云和县交通运输局</span></li>
                                            <li><span class="fifthLev1">庆元县交通运输局</span></li>
                                            <li><span class="fifthLev1">缙云县交通运输局</span></li>
                                            <li><span class="fifthLev1">遂昌县交通运输局</span></li>
                                            <li><span class="fifthLev1">松阳县交通运输局</span></li>
                                            <li><span class="fifthLev1">景宁畲族自治县交通运输局</span></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li class="treeNode1 closed">
                        <span class="secondLev1">机场</span>
                        <ul>
                            <li><span class="thirdLev1">杭州萧山国际机场有限公司</span></li>
                            <li><span class="thirdLev1">宁波机场与物流园区投资有限公司</span></li>
                            <li><span class="thirdLev1">宁波机场与物流发展集团有限公司</span></li>
                            <li><span class="thirdLev1">温州机场集团有限公司</span></li>
                            <li><span class="thirdLev1">义乌市国际陆港集团有限公司</span></li>
                            <li><span class="thirdLev1">舟山普陀山机场有限公司</span></li>
                            <li><span class="thirdLev1">嘉兴机场有限公司</span></li>
                            <li><span class="thirdLev1">建德千岛湖通用机场有限公司</span></li>
                            <li><span class="thirdLev1">精功通用航空股份有限公司</span></li>
                            <li><span class="thirdLev1">宁海县通用航空产业基地建设指挥部</span></li>
                            <li><span class="thirdLev1">浙江德清通航机场有限公司</span></li>
                        </ul>
                    </li>
                    <li class="treeNode1 closed">
                        <span class="secondLev1">投资公司</span>
                        <ul>
                            <li><span class="thirdLev1">交通集团投资有限公司</span></li>
                            <li><span class="thirdLev1">海港投资运营集团</span></li>
                        </ul>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <script>
        $('.bind').on('click', function () {
            var bpUserID = localStorage.getItem('bpUserID');
            var division_code = $('.industry').attr('data-code');
            var career = $('.industry').attr('data-career');
            $.post('/api/user_bind?bpUserID=' + bpUserID + '&division_code=' + division_code + '&career=' + career, {}, function (res) {
                localStorage.setItem('name', res["name"]);
                localStorage.setItem('user_name', res["user_name"]);
                localStorage.setItem('user_right', res["trial_first"] - 0 ? "trial_first" : (res["trial_second"] - 0 ? "trial_second" : (res["trial_third"] - 0 ? "trial_third" : (res["trial_forth"] - 0 ? "trial_forth" : ''))));
                localStorage.setItem('division_code', res["division_code"]);
                localStorage.setItem('career', res["career"]);
                window.location.href = 'index.html';
            })
        });
    </script>
</body>

</html>